//
//  main.cpp
//  指向指针的指针
//
//  Created by linjinzhu on 2017/7/11.
//  Copyright © 2017年 linjinzhu. All rights reserved.
//

#include <iostream>

using namespace std;

int main(int argc, const char * argv[]) {

    char a = 'a';
    char *p = &a;
    char **pp = &p;

    cout << "直接取值：" << a << endl;
    cout << "指针取值：" << *p << endl;
    cout << "指针取值：" << **pp << endl;

    cout << a << endl;
    cout << p << endl;
    cout << pp << endl;

    return 0;
}
